projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6967856
)
Don't clobber output vector if nothing was present on command line.
author
robertl
<robertl>
Wed, 21 May 2003 14:31:48 +0000
(14:31 +0000)
committer
robertl
<robertl>
Wed, 21 May 2003 14:31:48 +0000
(14:31 +0000)
vecs.c
patch
|
blob
|
history
diff --git
a/vecs.c
b/vecs.c
index 26ba02fb82c2fe3319cb849e8d60c29c58603c57..a7c4c089abe333a25cb8b7a48dcaeebae7e2dbaf 100644
(file)
--- a/
vecs.c
+++ b/
vecs.c
@@
-205,7
+205,11
@@
find_vec(char *const vecname, char **opts)
if (vec->vec->args) {
for (ap = vec->vec->args; ap->argstring; ap++){
- *ap->argval = get_option(*opts, ap->argstring);
+ void *av;
+ av = get_option(*opts, ap->argstring);
+ if (av) {
+ *ap->argval = av;
+ }
}
}
} else {